<template>
	<view class="content">
		
		<!-- 搜索模块 -->
		<view class="search-box">
			<u-search :show-action="false" disabled placeholder="请输入产品、行业或项目名称" :height="74" @click="$u.route('pages/search/search')"></u-search>
		</view>
		<!-- 搜索模块 -->
		
		<view class="list">
			
			<!-- 项目模块 -->
			<view class="item" v-for="(item,index) in 100" :key="index" @click="$u.route('pages/index/detail')">
				<view class="container" >
					<text class="title">神木是大料试验区人民医院在线设备采购公开招标</text>
					<!-- <view v-if="item.thumb" class="img-wrapper">
						<image class="pic" :src="getImgUrl(item.thumb)" mode="aspectFill"></image>
					</view> -->
					<view class="introduce-wrap has-pic"  >
						<text class="introduce">神木是大料试验区人民医院在线设备采购公开招标</text>
					</view>
					<view class="bot b-t">
						<text>查看详情</text>
						<text class="icon-you">2021-08-15</text>
					</view>
				</view>
			</view>
			<!-- 项目模块 -->
 
	 
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			//this.getDataList()
		},
		methods: {
			// 页面数据事件
			getDataList(pageNo, pageSize) {
				this.listQuery.pageNumber = pageNo
				this.listQuery.pageSize = pageSize
				this.isLoading = true
				this.$u.api.platform.notice(this.listQuery).then((res) => {
					this.$refs.list.complete(res.list);
					this.isLoading = false
				})
			},
			detail(id){
				this.$u.route('pages/public/article/detail', { id, module: 'notice' })
			}
		}
	}
</script>

<style>
	page{
		height: 100%;
	}
</style>
<style lang="scss" scoped>
	.content {
		height: 100%;
		display: flex;
		flex-direction: column;
		padding-bottom: 120rpx;
		
		.search-box{
			padding: 18rpx 10rpx;
			background-color: #FFFFFF;
		}
		
		.item {
			display: flex;
			flex-direction: column;
			align-items: center;
			background-color: #FFFFFF;
			margin-top: 20rpx;
			
			.time {
				display: flex;
				align-items: center;
				justify-content: center;
				height: 80rpx;
				padding-top: 10rpx;
				font-size: 26rpx;
				color: #7d7d7d;
			}
			
			.container {
				width: 100%;
				padding: 24rpx 24rpx 0 24rpx;
				
				.title {
					display: flex;
					align-items: center;
					height: 90rpx;
					font-size: 32rpx;
					color: #303133;
					font-weight: 700;
				}
				
				.img-wrapper {
					width: 100%;
					height: 280rpx;
					margin-bottom: 16rpx;
					position: relative;
				}
				
				.pic {
					display: block;
					width: 100%;
					height: 100%;
					border-radius: 6rpx;
				}
				.introduce-wrap{
					padding-bottom: 20rpx;
					
					.introduce {
						font-size: 28rpx;
						color: #606266;
						line-height: 40rpx;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						-webkit-line-clamp: 3;
						overflow: hidden;
					}
					&.has-pic .introduce{
						-webkit-line-clamp: 2;
					}
				}
				
				.bot {
					display: flex;
					align-items: center;
					justify-content: space-between;
					height: 80rpx;
					font-size: 24rpx;
					color: #707070;
					position: relative;
				}
				
				.icon-you {
					font-size: 24rpx;
				}
				
				.b-t:before{
					position: absolute;
					z-index: 3;
					left: 0;
					top: 0;
					right: 0;
					height: 0;
					content: '';
					transform: scaleY(.5);
					border-bottom: 1px solid #e5e5e5;
				}
			}
			
		}
		
	}
</style>
